//
//  UIFont+NewFont.m
//  SmallRichMan
//
//  Created by Isaac on 16/2/16.
//  Copyright © 2016年 Isaac. All rights reserved.
//

#import "UIFont+NewFont.h"

@implementation UIFont (NewFont)

+(UIFont *)adjustFont:(UIFont *)font{
    UIFont *newFont=nil;
    if (IS_IPHONE_6){
        newFont = font;
    }else if (IS_IPHONE_6_PLUS){
        newFont = [UIFont fontWithName:font.fontName size:font.pointSize+IPHONE6PLUS_INCREMENT];
    }else{
        newFont = [UIFont fontWithName:font.fontName size:font.pointSize-IPHONE5_INCREMENT];
        
    }
    return newFont;
}

+(UIFont *)adjustFontWithBold:(UIFont *)font{
    UIFont *newFont=nil;
    if (IS_IPHONE_6){
        newFont = [UIFont fontWithName:font.fontName size:font.pointSize+IPHONE5_INCREMENT];
    }else if (IS_IPHONE_6_PLUS){
        newFont = [UIFont fontWithName:font.fontName size:font.pointSize+IPHONE6PLUS_INCREMENT];
    }else{
        newFont = font;
    }
    return newFont;
}

@end
